Skip to content

fix(reactions): keep reaction pill order stable when counts change#3045

Open
LucienLassalle wants to merge 1 commit into
cinnyapp:devfrom
LucienLassalle:dev
Open

fix(reactions): keep reaction pill order stable when counts change#3045
LucienLassalle wants to merge 1 commit into
cinnyapp:devfrom
LucienLassalle:dev

Conversation

@LucienLassalle

Copy link
Copy Markdown

When two reactions are equivalent in terms of "clicks" and someone decides to click the second one, that reaction moves to the first position; this could cause another person intending to click it to make a mistake.

The issue was reported to me by @Syoshiii , who brought it to my attention on my server.

This is my first PR for Cinny; please feel free to provide feedback.
The commit was made with Claude's help.

Reaction pills were reordered by matrix-js-sdk on every add/remove,
sorting by descending reaction count. This made a pill jump position
whenever its count changed relative to others.

Order reactions by the timestamp of their first occurrence instead, so
a pill keeps its position once added, regardless of later count
changes.

Thanks to Syoshiii (https://github.com/Syoshiii) for reporting the issue.

Signed-off-by: Lucien Lassalle <ravagnierlucas@gmail.com>
@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@LucienLassalle

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

ajbura added a commit to cinnyapp/cla that referenced this pull request Jul 22, 2026
@LucienLassalle

Copy link
Copy Markdown
Author

recheck

@github-actions

Copy link
Copy Markdown

Preview: https://3045--cinny-pr.netlify.app
⚠️ Exercise caution. Use test accounts. ⚠️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant